package cn.liuxiany.alibaba.common.exception;


/**
 * @Description 业务异常类
 * @Author liuxiany
 * @Date 2023/10/31
 */
public class BusinessException extends GenericException {
    private static final long serialVersionUID = 1;

    public BusinessException(String errorCode, String errorMessage) {
        super(errorMessage);
        this.expCode = errorCode;
        this.expMessage = errorMessage;
    }

    public BusinessException(String message) {
        super(message);
        this.expMessage = message;
    }

    public BusinessException(Exception oriEx) {
        super(oriEx);
    }

    public BusinessException(Throwable oriEx) {
        super(oriEx);
    }

    public BusinessException(String message, Exception oriEx) {
        super(message, oriEx);
        this.expMessage = message;
    }

    public BusinessException(String message, Throwable oriEx) {
        super(message, oriEx);
        this.expMessage = message;
    }
}